<template>
  <div>
    <img :src="$pre + info.avatarurl" alt="" />
    <div class="h3">昵称：{{ info.nickname }}</div>
    <div @click="$router.push('/dizi')" class="h3">地址管理</div>
    <div @click="$router.push('/login')" class="h3">退出登录</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      info: JSON.parse(localStorage.getItem("isLogin")),
    };
  },
};
</script>

<style scoped lang="less">
@import "../../less/index.less";
img{
  width: 1rem;
  height:1rem;
  border-radius: 50%;
}
</style>